import request from '@/utils/request'

// 查询发布审核列表
export function listPosting(query) {
  return request({
    url: '/wallpaper/posting/list',
    method: 'get',
    params: query
  })
}

// 查询发布审核详细
export function getPosting(id) {
  return request({
    url: '/wallpaper/posting/' + id,
    method: 'get'
  })
}

export function getUserPostStatistics() {
  return request({
    url: '/wallpaper/posting/statistics',
    method: 'post',
  })
}

// 新增发布审核
export function addPosting(data) {
  return request({
    url: '/wallpaper/posting',
    method: 'post',
    data: data
  })
}

// 修改发布审核
export function updatePosting(data) {
  return request({
    url: '/wallpaper/posting',
    method: 'put',
    data: data
  })
}

// 删除发布审核
export function delPosting(id) {
  return request({
    url: '/wallpaper/posting/' + id,
    method: 'delete'
  })
}
